package com.cs.resultVO;

import com.cs.pojo.Menu;
import com.cs.pojo.Role;
import com.cs.pojo.User;
import com.github.pagehelper.PageInfo;

import java.util.List;

public class ResultVO<T> {
    
    private List<T> list;
    private T obj;
    private PageInfo<T>pageInfo;
    private Integer code = 200;
    private String msg = "ok";
    
    private List<Role> roleList;
    private List<Menu> menuList;
    private List<User> userList;

    public ResultVO(List<T> list, List<User> userList) {
        this.list = list;
        this.userList = userList;
    }

    public ResultVO(PageInfo<T> pageInfo, List<Role> roleList) {
        this.pageInfo = pageInfo;
        this.roleList = roleList;
    }

    public List<User> getUserList() {
        return userList;
    }

    public void setUserList(List<User> userList) {
        this.userList = userList;
    }

    public List<Menu> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<Menu> menuList) {
        this.menuList = menuList;
    }

    public List<Role> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<Role> roleList) {
        this.roleList = roleList;
    }

    public ResultVO(T obj, List<Menu> menuList) {
        this.obj = obj;
        this.menuList = menuList;
    }

    public ResultVO(List<T> list, PageInfo<T> pageInfo) {
        this.list = list;
        this.pageInfo = pageInfo;
    }

    public ResultVO() {
    }

    public ResultVO(PageInfo<T> pageInfo) {
        this.pageInfo = pageInfo;
    }

    public ResultVO(T obj) {
        this.obj = obj;
    }

    public ResultVO(List<T> list, T obj) {
        this.list = list;
        this.obj = obj;
    }

    public ResultVO(List<T> list) {
        this.list = list;
    }

    public ResultVO(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public List<T> getList() {
        return list;
    }

    public void setList(List<T> list) {
        this.list = list;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public PageInfo<T> getPageInfo() {
        return pageInfo;
    }

    public void setPageInfo(PageInfo<T> pageInfo) {
        this.pageInfo = pageInfo;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
